package com.wp.design.state;

public class CounseContent {
	private CourseState courseState;
	public static final PlayState PLAY_STATE = new PlayState();
	public static final PauseState PAUSE_STATE = new PauseState();
	public static final SpeedState SPEED_STATE = new SpeedState();
	public static final StopState STOP_STATE = new StopState();

	public CourseState getCourseState() {
		return courseState;
	}

	public void setCourseState(CourseState courseState) {
		this.courseState = courseState;
		this.courseState.setCounseContent(this);
	}

	void play() {
		this.courseState.play();
	}

	void pause() {
		this.courseState.pause();
	}

	void stop() {
		this.courseState.stop();
	}

	void speed() {
		this.courseState.speed();
	}
}
